import request from '@/utils/request.js'

// 查询收藏夹标签列表
export function listLabel(query) {
    return request({
        url: '/app/label/list',
        method: 'get',
        params: query
    })
}

// 新增收藏夹标签
export function addLabel(data) {
    return request({
        url: '/app/label',
        method: 'post',
        data: data
    })
}

// 修改收藏夹标签
export function updateLabel(data) {
    return request({
        url: '/app/label',
        method: 'put',
        data: data
    })
}


// 删除收藏夹标签
export function delLabel(labelId) {
    return request({
        url: '/app/label/' + labelId,
        method: 'delete'
    })
}



// 根据收藏夹标签ID查询收藏夹标签
export function queryLabelById(roleId) {
    return request({
        url: '/app/label/deptTree/' + roleId,
        method: 'get'
    })
}
